package com.yhd.utils;



import com.yhd.Constant;
import org.springframework.util.StringUtils;

import javax.servlet.http.HttpServletRequest;
import java.util.UUID;


/**
 * @Deprecated 工具类
 */
public class Utils {

    public static String getId(){
         UUID uuid = UUID.randomUUID();
         return uuid.toString().replace("-", "");
    }



    public static String addImgDomain(String img){
        if (!StringUtils.isEmpty(img)) {
            img = Constant.DOMAIN + img;
        }
        return img;
    }
}
